fn: <
[contents]

Contents

Syntax

The syntax for < calls is:

f++:  
<(params)

n++:  
@<(params)

Description

< is the relational less than operator, it takes a non-zero number of input parameters, if all parameters are less than the parameters following it returns 1, otherwise it returns 0.

Note: It is typically faster to use exprtk for relational operators, plus the syntax is nicer.

f++ example

Examples of < being used with f++:

for(int i=0; <(i, 10); i+=1)
	console("i: ", i)

int a=0, b=1, c=2
console(<(a, b, c))
console(<(c, a, b))

n++ example

Examples of < being used with n++:

@for(int i=0; <(i, 10); i+=1)
	@console("i: ", i)

@int a=0, b=1, c=2
@console(@<(a, b, c))
@console(@<(c, a, b))